import request from '@/utils/request'

// 查询活动报名名单列表
export function listSign(query) {
  return request({
    url: '/module/active/sign/list',
    method: 'get',
    params: query
  })
}

// 查询活动报名名单详细
export function getSign(id) {
  return request({
    url: '/module/active/sign/' + id,
    method: 'get'
  })
}

// 新增活动报名名单
export function addSign(data) {
  return request({
    url: '/module/active/sign',
    method: 'post',
    data: data
  })
}

// 修改活动报名名单
export function updateSign(data) {
  return request({
    url: '/module/active/sign',
    method: 'put',
    data: data
  })
}

// 删除活动报名名单
export function delSign(id) {
  return request({
    url: '/module/active/sign/' + id,
    method: 'delete'
  })
}

// 导出活动报名名单
export function exportSign(query) {
  return request({
    url: '/module/active/sign/export',
    method: 'get',
    params: query
  })
}
